﻿using System;
using System.IO;
using System.Windows.Forms;

namespace App.Main
{
    static class Program
    {
        [STAThread]
        static void Main()
        {

            /**
             * Comentar para produccion
             */
/*
#if DEBUG
            if( MessageBox.Show("Reinstalar la base?", "App", MessageBoxButtons.YesNo) == DialogResult.Yes ) 
                Instalar();
#endif
            */
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            var app = new AplicacionPrincipal();
            Application.Run(app.FormularioPrincipal);
        }


        static void Instalar()
        {
            var cwd = Directory.GetCurrentDirectory();
            var ins = new Instalador.Instalador();

            ins.Run();
        }
    }
}
